(define-module (emacs toc-org)
  #:use-module ((guix licenses) #:prefix license:)
  #:use-module (guix build-system emacs)
  #:use-module (guix packages)
  #:use-module (gnu packages emacs)
  #:use-module (gnu packages emacs-xyz)
  #:use-module (guix download))

(define-public emacs-toc-org
  (package
   (name "emacs-toc-org")
   (version "1.1.0")
   (source
    (origin
     (method url-fetch)
     (uri (string-append
           "https://stable.melpa.org/packages/toc-org-"
           version
           ".el"))
     (sha256
      (base32
       "10j4iysm8s688iwq3h483v0409w5f2j208x4qkddj0pdxdbm5z8n"))))
   (build-system emacs-build-system)
   (propagated-inputs
    `(("emacs-org" ,emacs-org)))
   (home-page "https://github.com/snosov1/toc-org")
   (synopsis
    "Add table of contents to org-mode files (formerly, org-toc)")
   (description
    "toc-org helps you to have an up-to-date table of contents in org
files without exporting.")
   (license license:gpl2+)))
